package com.zp.filter;/**
 * @description
 * @author zp
 * @created 2021/9/3 20:57
 */

import java.util.ArrayList;
import java.util.List;

/**
 * @author zp
 * @description
 * @created 2021/9/3 20:57
 */
public class FemaleCriteria implements Criteria {
    public List<Person> meetCriteria(List<Person> people) {
        List<Person> femalePeople = new ArrayList<Person>();
        for(Person person:people){
            if(1 == person.getGender()){
                femalePeople.add(person);
            }
        }
        return femalePeople;
    }
}
